/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author essousa
 */
class OperacoesComTexto {


    public static int contaEspacos(String texto){
        return texto.length()-texto.replaceAll(" ","").length();
    }


    public static String maiuscula1Letra(String palavra) {
        return palavra.substring(0,1).toUpperCase()+palavra.substring(1);
    }
	
}

